import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'
/*
 * @Author: cl
 * @Description: 科目表
 * @Date: 2023-04-18 10:20:15
 * @LastEditTime: 2023-04-18 11:14:14
 * @FilePath: \jsnode\nestjs\naota\src\subject\entities\subject.entity.ts
 * @LastEditors: cl
 */
@Entity()
export class Subject {
  @PrimaryGeneratedColumn({ type: 'int' })
  id: number

  //学科名称
  @Column({ type: 'varchar', length: 200 })
  name: string

  //学科编号
  @Column({ type: 'varchar', length: 200 })
  no: string
}
